import request from '@/utils/request'
 
export const list = function(params){
  return request({
    url: '/article/front_list',
    method: 'get',
    params: params,
  })
}

export const detail = function(params){
  return request({
    url: '/article/get_article',
    method: 'get',
    params: params,
  })
}

export const youLike = function(params){
  return request({
    url: '/article/article_guess_you_like',
    method: 'get',
    params: params,
  })
}

export const discount = function(params){
  return request({
    url: '/article/get_article_discount_product',
    method: 'get',
    params: params,
  })
}

export const get_type = function(params){
  return request({
    url: '/article/get_type',
    method: 'get',
    params: params,
  })
}

export const article_comment = function(params){
  return request({
    url: '/article/article_comment',
    method: 'post',
    data: params,
  })
}

export const comment_list = function(params){
  return request({
    url: '/article/article_comment_list',
    method: 'get',
    params: params,
  })
}


export const comment_reply = function(params){
  return request({
    url: '/article/article_comment_reply',
    method: 'post',
    data: params,
  })
}


export const comment_reply_list = function(params){
  return request({
    url: '/article/article_comment_reply_list',
    method: 'get',
    params: params,
  })
}


export const give_like = function(params){
  return request({
    url: '/article/give_like',
    method: 'post',
    data: params,
  })
}